package ui;
import javax.swing.*;
import java.awt.*;

public class home extends JFrame{
	private JPanel send;//发送
	private JLabel id;//序号
	private JLabel head;//指令头
	private JLabel time;//时间
	private JLabel fid;//帧ID
	private JLabel fformat;//帧格式
	private JLabel type;//帧类型
	private JLabel length;//数据长度
	private JLabel hex;//数据

	
	public home() {
		send= new JPanel();
		
		send.setLayout(null);
		id = new JLabel("序号");
		time = new JLabel("时间");
		head = new JLabel("指令头");
		type = new JLabel("帧类型");
		fformat = new JLabel("帧格式");
		fid = new JLabel("帧ID");
		length = new JLabel("数据长度");
		hex = new JLabel("数据（Hex）");
		
		
		id.setBounds(0,20,20,20);
		time.setBounds(40,20,60,20);
		head.setBounds(100,20,20,20);
		type.setBounds(130,20,30,20);
		fformat.setBounds(180,40,30,20);
		fid.setBounds(220,20,40,20);
		length.setBounds(260,20,20,20);
		hex.setBounds(290,20,40,20);
		
		send.add(id);
		send.add(time);
		send.add(head);
		send.add(type);
		send.add(fformat);
		send.add(fid);
		send.add(length);
		send.add(hex);
		send.setBounds(10,10,800,800);
		add(send);
		this.setLayout(null);
		this.setVisible(true);
		this.setSize(1000,1000);
	}
		public static void main(String[] args) {
			new home();
		}

}
